package com.fashiontextile.common.constant;

/**
 * @author brooke_zb
 */
public class TokenConstants {
    public static final String TOKEN_HEADER = "Authorization";
    public static final String ROLE_HEADER = "Authorization_role";
    public static final String LOGIN_UID_HEADER = "Login_uid";
    public static final String WHITE_LIST_HEADER = "White_list";
    public static final String WHITE_LIST_VALUE = "402ffcbe20c6987dec750fbacfc63c6a";
    public static final String PREFIX = "Bearer ";
    public static final String REDIS_PREFIX = "fs:token:";

    // token哈希密钥
    public static final String SECRET = "ca5839e38a15433e62b39767d6a86eaafba17ea6b3ea61e3b89e2ac46baa874c";
    // 默认过期时长, 单位minute
    public static final long EXPIRATION = 720;
    // 刷新时长，单位minute
    public static final long REFRESH_DURATION = 120;
}
